<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>LCV Framework: gpio.h-Dateireferenz</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Erzeugt von Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Hauptseite</span></a></li>
    <li><a href="classes.html"><span>Datenstrukturen</span></a></li>
    <li class="current"><a href="files.html"><span>Dateien</span></a></li>
  </ul>
</div>
<h1>gpio.h-Dateireferenz</h1>Die Schnittstelle zu den GPIO Ports. <a href="#_details">Mehr ...</a>
<p>
<code>#include &quot;<a class="el" href="lcv-config_8h-source.html">lcv-config.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="lcv-structs_8h-source.html">lcv-structs.h</a>&quot;</code><br>
<code>#include &quot;<a class="el" href="gpio-config_8h-source.html">gpio-config.h</a>&quot;</code><br>

<p>
<a href="gpio_8h-source.html">gehe zum Quellcode dieser Datei</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Funktionen</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="gpio_8h.html#c1091625d45beae7dbadf8b575f5a3b2">lcv_gpio_read</a> (unsigned char port)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Liest den Wert eines Eingabeports.  <a href="#c1091625d45beae7dbadf8b575f5a3b2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="gpio_8h.html#b9f8e9e1180ce0f6c40fc07382807c07">lcv_gpio_write</a> (unsigned char port, unsigned char value)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Schreibt den Wert eines Ausgabeports.  <a href="#b9f8e9e1180ce0f6c40fc07382807c07"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="gpio_8h.html#fe074e107ea0df9a1e7becc8cd65cc04">lcv_gpio_simulate_input</a> (unsigned char port, unsigned char value)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Simuliert einen Input an einem GPIO Port.  <a href="#fe074e107ea0df9a1e7becc8cd65cc04"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="gpio_8h.html#ea6d99743be79991a2a0665efac78f92">lcv_gpio_simulate_output</a> (void(*handler)(unsigned char port, unsigned char value))</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Legt eine Funktion als Event-Handler für Schreiboperationen auf GPIO Ports fest.  <a href="#ea6d99743be79991a2a0665efac78f92"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Ausführliche Beschreibung</h2>
Die Schnittstelle zu den GPIO Ports. 
<p>
<dl class="author" compact><dt><b>Autor:</b></dt><dd>Daniel Kummer, Sebastian Kummer </dd></dl>
<dl class="date" compact><dt><b>Datum:</b></dt><dd>Donnerstag, Dezember 12, 2007 </dd></dl>
<dl class="version" compact><dt><b>Version:</b></dt><dd>1.0 </dd></dl>

<p>Definiert in Datei <a class="el" href="gpio_8h-source.html">gpio.h</a>.</p>
<hr><h2>Dokumentation der Funktionen</h2>
<a class="anchor" name="c1091625d45beae7dbadf8b575f5a3b2"></a><!-- doxytag: member="gpio.h::lcv_gpio_read" ref="c1091625d45beae7dbadf8b575f5a3b2" args="(unsigned char port)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char lcv_gpio_read           </td>
          <td>(</td>
          <td class="paramtype">unsigned char&nbsp;</td>
          <td class="paramname"> <em>port</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Liest den Wert eines Eingabeports. 
<p>
<dl compact><dt><b>Parameter:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>port</em>&nbsp;</td><td>Nummer des LCV-Ports </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Rückgabe:</b></dt><dd>Wert (0 oder 1) oder Fehlernummer (negativ) </dd></dl>

<p>Definiert in Zeile <a class="el" href="gpio-linux32_8c-source.html#l00036">36</a> der Datei <a class="el" href="gpio-linux32_8c-source.html">gpio-linux32.c</a>.</p>

<p>Benutzt <a class="el" href="lcv-config_8h-source.html#l00032">ERROR_ILLEGAL_PORT</a>, <a class="el" href="gpio-port-config_8h-source.html#l00037">gpio_in_ports_cnt</a>, <a class="el" href="gpio-linux32_8c-source.html#l00028">gpio_values</a> und <a class="el" href="gpio-linux32_8c-source.html#l00063">lcv_gpio_init()</a>.</p>

</div>
</div><p>
<a class="anchor" name="fe074e107ea0df9a1e7becc8cd65cc04"></a><!-- doxytag: member="gpio.h::lcv_gpio_simulate_input" ref="fe074e107ea0df9a1e7becc8cd65cc04" args="(unsigned char port, unsigned char value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void lcv_gpio_simulate_input           </td>
          <td>(</td>
          <td class="paramtype">unsigned char&nbsp;</td>
          <td class="paramname"> <em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Simuliert einen Input an einem GPIO Port. 
<p>
<dl compact><dt><b>Parameter:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>port</em>&nbsp;</td><td>Nummer des LCV-Ports </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>Wert (0 oder 1) </td></tr>
  </table>
</dl>

<p>Definiert in Zeile <a class="el" href="gpio-linux32_8c-source.html#l00076">76</a> der Datei <a class="el" href="gpio-linux32_8c-source.html">gpio-linux32.c</a>.</p>

<p>Benutzt <a class="el" href="gpio-port-config_8h-source.html#l00033">gpio_out_ports_cnt</a> und <a class="el" href="gpio-linux32_8c-source.html#l00028">gpio_values</a>.</p>

</div>
</div><p>
<a class="anchor" name="ea6d99743be79991a2a0665efac78f92"></a><!-- doxytag: member="gpio.h::lcv_gpio_simulate_output" ref="ea6d99743be79991a2a0665efac78f92" args="(void(*handler)(unsigned char port, unsigned char value))" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void lcv_gpio_simulate_output           </td>
          <td>(</td>
          <td class="paramtype">void(*)(unsigned char port, unsigned char value)&nbsp;</td>
          <td class="paramname"> <em>handler</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Legt eine Funktion als Event-Handler für Schreiboperationen auf GPIO Ports fest. 
<p>
<dl compact><dt><b>Parameter:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>handler</em>&nbsp;</td><td>Function-Pointer auf den Event-Handler mit der Portnummer und dem geschriebenen Wert als Parameter </td></tr>
  </table>
</dl>

<p>Definiert in Zeile <a class="el" href="gpio-linux32_8c-source.html#l00087">87</a> der Datei <a class="el" href="gpio-linux32_8c-source.html">gpio-linux32.c</a>.</p>

<p>Benutzt <a class="el" href="gpio-linux32_8c-source.html#l00033">gpio_write_handler</a>.</p>

</div>
</div><p>
<a class="anchor" name="b9f8e9e1180ce0f6c40fc07382807c07"></a><!-- doxytag: member="gpio.h::lcv_gpio_write" ref="b9f8e9e1180ce0f6c40fc07382807c07" args="(unsigned char port, unsigned char value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char lcv_gpio_write           </td>
          <td>(</td>
          <td class="paramtype">unsigned char&nbsp;</td>
          <td class="paramname"> <em>port</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned char&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Schreibt den Wert eines Ausgabeports. 
<p>
<dl compact><dt><b>Parameter:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>port</em>&nbsp;</td><td>Nummer des LCV-Ports </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>0 oder 1 </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Rückgabe:</b></dt><dd>Erfolgsmeldung (positiv) oder Fehlernummer (negativ) </dd></dl>

<p>Definiert in Zeile <a class="el" href="gpio-linux32_8c-source.html#l00046">46</a> der Datei <a class="el" href="gpio-linux32_8c-source.html">gpio-linux32.c</a>.</p>

<p>Benutzt <a class="el" href="lcv-config_8h-source.html#l00032">ERROR_ILLEGAL_PORT</a>, <a class="el" href="gpio-port-config_8h-source.html#l00033">gpio_out_ports_cnt</a>, <a class="el" href="gpio-linux32_8c-source.html#l00033">gpio_write_handler</a>, <a class="el" href="log_8c-source.html#l00032">lcv_log()</a> und <a class="el" href="lcv-config_8h-source.html#l00022">TRUE</a>.</p>

</div>
</div><p>
<hr size="1"><address style="text-align: right;"><small>Erzeugt am Wed Dec 19 16:38:17 2007 für LCV Framework von&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>
